package com.ywk.pattern._8_methodfactory;

public class Main {
    public static void main(String[] args) {
        IFactory factory = new AddFactory();
        final Operation operation = factory.CreateOperation();
        operation.setNumberA(1);
        operation.setNumberB(2);
        System.out.println(operation.getResult());
    }


}
